From 5dabc589c2e1214cfa386e80476920d378f2de38 Mon Sep 17 00:00:00 2001 From: Debian LibreOffice Maintainers Date: Wed, 1 Oct 2014 19:37:10 +0000 Subject: [PATCH] sensible-browser =================================================================== Gbp-Pq: Name sensible-browser.diff --- shell/source/unix/misc/gnome-open-url.sh | 2 +- shell/source/unix/misc/kde-open-url.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/shell/source/unix/misc/gnome-open-url.sh b/shell/source/unix/misc/gnome-open-url.sh index ab730d169a4..e73dfdeac23 100755 --- a/shell/source/unix/misc/gnome-open-url.sh +++ b/shell/source/unix/misc/gnome-open-url.sh @@ -1,6 +1,6 @@ #!/bin/sh # use xdg-open or gnome-open if available -xdg-open "$1" 2>/dev/null || gnome-open "$1" 2>/dev/null || "$0.bin" $1 +xdg-open "$1" 2>/dev/null || gnome-open "$1" 2>/dev/null || sensible-browser "$1" || "$0.bin" $1 exit 0 diff --git a/shell/source/unix/misc/kde-open-url.sh b/shell/source/unix/misc/kde-open-url.sh index 43ab738cf34..9c9c3590ee9 100644 --- a/shell/source/unix/misc/kde-open-url.sh +++ b/shell/source/unix/misc/kde-open-url.sh @@ -19,9 +19,13 @@ # special handling for mailto: uris if echo $1 | grep '^mailto:' > /dev/null; then - kmailservice "$1" & + if which kde-open; then + kde-open "$1" & + else + mailservice "$1" & + fi else - kfmclient openURL "$1" & + sensible-browser "$1" & fi exit 0 -- 2.30.2